package com.maxmind.domain;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.maxmind.db.MaxMindDbConstructor;
import com.maxmind.db.MaxMindDbParameter;

import lombok.Data;

/**
 * 类LocationInfo的实现描述：地址信息
 *
 * @author sunyj 2025/3/21 14:48
 */
@Data
public class LocationInfo {


    private Integer accuracyRadius;
    private String timeZone;
    private Double latitude;
    private Double longitude;

    @MaxMindDbConstructor
    public LocationInfo (
            @MaxMindDbParameter(name="accuracy_radius") Integer accuracyRadius,
            @MaxMindDbParameter(name="time_zone") String timeZone,
            @MaxMindDbParameter(name="latitude") Double latitude,
            @MaxMindDbParameter(name="longitude") Double longitude) {
        this.accuracyRadius = accuracyRadius;
        this.timeZone = timeZone;
        this.latitude = latitude;
        this.longitude = longitude;
    }
}
